package ShareYourWay.functions;

import java.util.ArrayList;


import org.codehaus.jackson.io.SerializedString;



import ShareYourWay.project.Meetup;



public class Functions_Meetup {
	
	static public ArrayList<Meetup> ListaMeets = new ArrayList<Meetup>();
	static public ArrayList<Integer> noMeets = new ArrayList<Integer>();
	
    public void addMeet (Meetup m) {
    	
    	ListaMeets.add(m);
    	
    	    	
    }
    
	public ArrayList<Meetup> getmeets() {
		return ListaMeets;
	}
    
    
	public void Listar () {
		
		int i=0;
		
		while(i < ListaMeets.size()){
			
			System.out.println("Nombre: "+ListaMeets.get(i).getVehicle());
			System.out.println("Origen: "+ListaMeets.get(i).getOrigin());
			System.out.println("Vehiculo: "+ListaMeets.get(i).getDestination());
			i++;
		}
	
	}
	
	public void addnoshow (int id) {
		
			noMeets.add(id);
		
	}
	
	public ArrayList<Integer> getnoshow () {
		
		return noMeets;
	
}
	
	public void Listarnoshow () {
		
		int i=0;
		
		while(i < noMeets.size()){
			
			System.out.println("Nombre: "+noMeets.get(i));	
			i++;
		}
	
	}
	
	
	

} // fin clase
